From: Stefan Monnier Date: Sun, 4 Feb 2024 17:52:01 +0000 (-0500) Subject: * src/window.c (set_window_buffer): Flush the `base_line_number` cache X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~14^2~18^2~2675 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a1aa9028f83e5d3da71bdb5877d8baa5d6c1e98a;p=emacs.git * src/window.c (set_window_buffer): Flush the `base_line_number` cache --- diff --git a/src/window.c b/src/window.c index 915f591221d..565ad00804f 100644 --- a/src/window.c +++ b/src/window.c @@ -4151,6 +4151,8 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, buffer); w->start_at_line_beg = false; w->force_start = false; + /* Flush the base_line cache since it applied to another buffer. */ + w->base_line_number = 0; } wset_redisplay (w);